<!DOCTYPE html>
<html>
<head>
	<title>{$pageData.title}</title>
	<script type="text/javascript" src="__STATIC__/common/js/jquery.min.js"></script>
</head>
<body>
<div id="result"></div>
<script type="text/javascript">
$(function(){

	getDatas();

});

function getDatas(){
	$.ajax({
		'type':'post',
		'dataType':'json',
		'url':"{:url('consult.api/rows')}",
		'data':'',
		'success':function(data){
			var html = '';
			$.each(data.data,function(index,value){
				html += '<div><a href="{:url('consult.show/detail')}?id='+value.id+'">标题：'+value.title+'</a> 时间：'+value.create_date+'</div>';
			});
			$("#result").html(html);
		}
	});
}

</script>
</body>
</html>